package com.mocchira.music.radio.web;

import java.io.Writer;
import java.util.List;
import java.util.Map;

public interface IMusicResourceManager {
    public void writeJSONTrackList(String tag, Writer writer) throws Exception;
    public void writeJSONTrackList(String tag, Writer writer, int startPos) throws Exception;
    public void writeTopNTagList(int topn, Writer writer) throws Exception;
    public void close();
    public void writeJSONHotArtistList(Writer writer) throws Exception;
    public List<Object> writeJSONArtistTrackList(String artist, Writer writer) throws Exception;
    public List<Object> getHotArtistList() throws Exception;
    public List<Object> getHotArtistList(int num) throws Exception;
    public List<Object> getArtistListByTag(String tag) throws Exception;
    public Map<String, List<Object>> getLatestTracks() throws Exception;
}
